<?php

/**
 *
 * @author ben <ben@spicatech.cn>  Created on 2015-6-27
 */
abstract class ListObject {

    protected $condition;

    abstract public function count();

    public function get() {
        
    }
    
    public function __construct() {
        $this->condition = new stdClass();
    }
    

    public function setCondition($key, $name) {
        $this->condition->$key = $name;
    }

    public function setClientId($clientId) {
        $this->condition->clientId = $clientId;
    }

    public function getClientId() {
        return $this->condition->clientId;
    }
    
    public function setPage($page) {
        $this->condition->page = $page;
    }
    
    
    public function setPageSize($pageSize) {
        $this->condition->pageSize = $pageSize;
    }
    
    public function setStartTime($startTime) {
        $this->condition->startTime = $startTime;
    }
    
    public function setEndTime($endTime) {
        $this->condition->endTime = $endTime;
    }

}
